package com.funwell.server.constants;

/**
 * OCS Cache中存储的数据所用的Key的前缀.
 * 
 * @author sunfangwei
 */
public class OCSKeys {
  /**
   * 默认的访问Token的HTTP请求头的名字
   */
  public static final String ACCESS_TOKEN_HEADER_NAME = "X-Access-Auth-Token";

  /**
   * <pre>
   * 缓存用户的key
   * 用法是: String key = PETROCOKE_OPS_USER_ + 123;
   * </pre>
   */
  public static final String SERVER_OPS_KEY = "{projectName}_OPS_USER_";

  /**
   * 用户过期时间(单位:秒，1天)
   */
  public static final int SERVER_USER_EXP_KEY = 60 * 60 * 24 * 7;
  
  /**
   * <pre>
   * 缓存用户的key
   * 用法是: String key = QQGPC_SERVER_USER_ + 123;
   * </pre>
   */
  public static final String SERVER_USER_KEY = "QQGPC_SERVER_USER_";

}
